cmake_minimum_required(VERSION 2.8)

project(FireRaysAPP)

file(GLOB_RECURSE  FireRaysAPP_SOURCE_FILES ./*.*)

add_definitions(-DGLEW_STATIC -DUSE_EMBREE)

include_directories(${OPENCL_INCLUDE_DIRS} 
	../FireRays/include
	../Gtest/include 
	../CLW/include 
	../Calc/include 
	../GLEW/include 
	F:/wxfworkspace/freeglut/include
	F:/wxfworkspace/dependence/oiio/include
	F:/wxfworkspace/dependence/openexr-2.2.0/include
	F:/wxfworkspace/dependence/ilmbase-2.2.0/include
	F:/wxfworkspace/dependence/boost_1_60_0
	F:/deps-vs2015-x64-installed/embree/include
	)

link_directories(${PROJECT_BINARY_DIR}/../Debug 
	F:/wxfworkspace/freeglut/lib/x64/Debug
	F:/wxfworkspace/dependence/oiio/lib/x64
	F:/deps-vs2015-x64-installed/embree/lib
	)

add_executable(${PROJECT_NAME} ${FireRaysAPP_SOURCE_FILES})
add_dependencies(${PROJECT_NAME} FireRay CLW Calc)

target_link_libraries(${PROJECT_NAME} ${OPENCL_LIBRARIES} embree.lib Gtest.lib FireRay.lib Calc.lib CLW.lib glew.lib freeglut.lib OpenImageIOD.lib)

SET(EXECUTABLE_OUTPUT_PATH  ${PROJECT_BINARY_DIR}/../)